<?php 
defined( '_JEXEC' ) or die( 'Restricted access' );

$template_width   					= $this->params->get("templateWidth", "100%");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
    <head>
        <jdoc:include type="head" />

<script type="text/javascript" src="<?php echo $this->baseurl ?>/media/system/js/modal.js"> </script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/media/system/css/modal.css" type="text/css" />
<script type="text/javascript">
// <!--
window.addEvent('domready', function(){ var JTooltips = new
Tips($$('.hasTip'), { maxTitleChars: 50, fixed: 'false'}); });
// -->
</script>
<script type="text/javascript">
// <!--
window.addEvent('domready', function() {
SqueezeBox.initialize({});
$$('a.modal').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});
// -->
</script>
        <?php require("head_includes.php"); ?>

    </head>

    <body>
        <div id="container">
        <div id="header">
            <div id="bannerarea">
                <div id="banner"><jdoc:include type="modules" name="banner" style="xhtml" /></div>
            </div>
            <div id="topmenu"><jdoc:include type="modules" name="top" style="xhtml" /></div>
        </div>
        <div id="navigation">
            <div id="navleft">
                <div id="navright">
                    <div id="menubar">
                        <div id="menubar1"><jdoc:include type="modules" name="user3" style="xhtml" /></div>
                        <div id="menubar2"><jdoc:include type="modules" name="toolbar" style="xhtml" /></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="maincontent">
            <?php if($this->countModules('left')) : ?>
            <div id="left_out">
                <div class="sidebar"><jdoc:include type="modules" name="left" style="rounded" /></div>
            </div>
            <?php endif; ?>
            <?php if($this->countModules('right')) : ?>
            <div id="right_out">
                <div class="sidebar"><jdoc:include type="modules" name="right" style="rounded" /></div>
            </div>
            <?php endif; ?>
            <div id="content_out<?php echo $contentwidth; ?>">
<table><tr><td>
                <div id="headerimage"></div>

                <div id="pathway"><jdoc:include type="module" name="breadcrumbs" /></div>
<jdoc:include type="message" />
                <?php if(JRequest::getVar('id')!=null): ?>
                <div id="content"><jdoc:include type="component" /></div>
                <?php endif; ?>

                <?php if($this->countModules('user1')) : ?>
                <div class="user_bg">
                    <div class="topmodule_userone">
                        <div class="user_inside"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
                    </div>
                </div>
                <?php endif; ?>

                <?php if($this->countModules('user2')) : ?>
                <div class="user_bg">
                    <div class="topmodule_userone">
                        <div class="user_inside"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
                    </div>
                </div>
                <?php endif; ?>

                <?php if($this->countModules('user4')) : ?>
                <div class="user_bg">
                    <div class="topmodule_userone">
                        <div class="user_inside"><jdoc:include type="modules" name="user4" style="xhtml" /></div>
                    </div>
                </div>
                <?php endif; ?>
                <?php if($this->countModules('user5')) : ?>
                <div class="user_bg">
                    <div class="topmodule_userone">
                        <div class="user_inside"><jdoc:include type="modules" name="user5" style="xhtml" /></div>
                    </div>
                </div>
                <?php endif; ?>
                <?php if($this->countModules('user6')) : ?>
                <div class="user_bg">
                    <div class="topmodule_userone">
                        <div class="user_inside"><jdoc:include type="modules" name="user6" style="xhtml" /></div>
                    </div>
                </div>
                <?php endif; ?>

                <?php
                if(JRequest::getVar('id')==null):
                ?>
                <div id="content"><jdoc:include type="component" /></div>
                <?php endif;?>
</td></tr></table>
            </div>
            <div id="copyright">&copy; 2009 by <?php echo $mainframe->getCfg('sitename');?> | Designed by <a>vonfio.de</a></div>
        </div>
    </body>
</html>